﻿using Business;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace QuotationSoftware
{
    public class Global
    {
        public static bool InitApp = false;
        public static Common.UserInfo _UserInfo;
        public const string CreateProgramFrmName = "CreateProgram";
        public const string EditProgramFrmName = "EditProgram";
        public const string ViewProgramFrmName = "ViewProgram";
        public const string CreateMasterPlan = "CreateMasterPlan";
        public const string EditMasterPlan = "EditMasterPlan";
        public const string ViewMasterPlan = "ViewMasterPlan";
        public const string CreateQuotation = "CreateQuotation";
        public const string EditQuotation = "EditQuotation";
        public const string ViewQuotation = "ViewQuotation";
        public const string CostcardManagement = "CostcardManager";

        public static string GetTaskResult(int ErrorID, Enum ErrorCode, string MessageSystemError)
        {
            string error = Common.EnumUtils.stringValueOf(ErrorCode) + " " + MessageSystemError;
            return String.Format("{0}|{1}", ErrorID, error);
        }
        public static Business.Project mProject;
        public static List<myMasterPlan> myMP;
        public static List<Region> listRegion;
        public static List<CodeDetail> listMech;
        public static List<CodeDetail> listChannel;
        public static List<CodeDetail> listPOSM;
        public static List<Team> listTeam;
    }
}
